CC=gcc
FLAGS=-c -Wall -O2 -g

all:server client
	
server:server.o
	$(CC)  $< -o $@ -pthread -lsqlite3

client:client.o
	$(CC)  $< -o $@

%*.o:%*.c
	$(CC) $(FLAGS) $< -o $@ 

.PHONY:clean
clean:
	rm -rf *.o client server 
